<%@page contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<%
	String path =request.getContextPath();
%>
<head>
    <meta http-equiv="x-ua-compatible" content="ie=7" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <script language="javascript" type="text/javascript" src="<%=path%>/js/validatorTool.js"></script>
	
	
	<script language="javascript" type="text/javascript">
		
		function exportData(){
			form1.action="<%=path%>/other/exportSendNotice?isList=y";
			form1.submit();
		}	
		
		function qryData(){
			form1.action="<%=path%>/other/qrySendNotice";
			form1.submit();
		}	
		
		function sbmForm2(){
			document.form2.submit();
		}	

		function resetMyData(){
			var objStatus = document.getElementById("qryBillStatus");
			objStatus.value = "";
			resetData();
		}
				
	</script>
</head>
<body class="fullbody">
            <div class="context">
                <div class="position">
                    <div class="tposi">当前位置：
                        <a href="javascript:changeMenu(1,'<%=path%>/infopub/pubmain?menuid=1');"class="linkstyle">首页</a>&nbsp;&gt;&gt;&nbsp;
                   		<a href="javascript:changeMenu(3,'');" class="linkstyle">我的订单\合同</a>&nbsp;&gt;&gt;&nbsp;
                        <span class="curposition">我的发货通知</span>
                    </div>
                    <div class="help">
						<a href="javascript:void(null);" onclick="doHelp('<%=request.getContextPath()%>/help/html/WDFHTZ.html');" class="linkstyle">帮助</a>
					</div>
                </div>
                <div class="margin8"></div>
                <div class="subpage_title">
                    <div class="title_index">
                        <img src="<%=path%>/images/common/dot03.gif" alt="" border="0" />&nbsp;我的发货通知</div>
                </div>
                <div class="margin20"></div>
                <div class="subpage_bidlist">
                    <div class="subpage_search" >
                    	<form name="form1" action="<%=path%>/other/qrySendNotice" method="post">
	                        <table border="0" cellpadding="0" cellspacing="0" class="searchtable">
	                            <tr>
	                                <td valign="middle" class="w_1">发货通知号：</td>
	                                <td valign="middle" class="w_2">
	                                    <input id="qrySendNo" name="qrySendNo" type="text" value="${qrySendNo}" class="searchtext" />
	                                </td>
	                                <td valign="middle" class="w_1">订单号：</td>
	                                <td valign="middle" class="w_2">
	                                    <input id="qryOrderNo" name="qryOrderNo" type="text" value="${qryOrderNo}" class="searchtext" />
	                                </td>
	                            </tr>
	                            <tr>
	                            	<td valign="middle" class="w_1">产品名称：</td>
	                                <td valign="middle" class="w_2">
	                                    <input id="qryProdName" name="qryProdName" type="text" value="${qryProdName}" class="searchtext" />
	                                </td>
	                                <td valign="middle" class="w_1">发货通知状态：</td>
	                                <td valign="middle" class="w_2">
	                                	<select id="qryBillStatus" name="qryBillStatus" class="searchtext">
	                                		<option value=""></option>
	                                		<option value="-1" <c:if test="${\"-1\"==qryBillStatus}">selected</c:if>>未提交</option>
	                                		<option value="3"  <c:if test="${\"3\"==qryBillStatus}">selected</c:if>>已提交</option>
	                                	</select>
	                                </td>
	                            </tr>
	                            <tr>
	                                <td valign="middle" class="w_1">发货日期：</td>
	                                <td valign="middle" class="w_2">
	                                    <input id="qrySendBeginDate" name="qrySendBeginDate" type="text" 
	                                    	onclick="return showCalendar('qrySendBeginDate', 'y-mm-dd');"  
	                                    	readonly="readonly" value="${qrySendBeginDate}" class="searchdate" />&nbsp;至&nbsp;
	                                    <input id="qrySendEndDate" name="qrySendEndDate" type="text" 
	                                    	onclick="return showCalendar('qrySendEndDate', 'y-mm-dd');"  
	                                    	readonly="readonly" value="${qrySendEndDate}" class="searchdate" />
	                                </td>
	                               <td valign="middle" class="w_1"> 计划到货日期：</td>
	                                <td valign="middle" class="w_2">
	                                    <input id="qryPlanArrBeginDate" name="qryPlanArrBeginDate" type="text" 
	                                    	onclick="return showCalendar('qryPlanArrBeginDate', 'y-mm-dd');"  
	                                    	readonly="readonly" value="${qryPlanArrBeginDate}" class="searchdate" />&nbsp;至&nbsp;
	                                    <input id="qryPlanArrEndDate" name="qryPlanArrEndDate" type="text" 
	                                    	onclick="return showCalendar('qryPlanArrEndDate', 'y-mm-dd');"   
	                                    	readonly="readonly" value="${qryPlanArrEndDate}" class="searchdate" />
	                                </td>
	                            </tr>
	                            <tr><td colspan="4">&nbsp;</td></tr>
	                            <tr>
	                                <td valign="middle" colspan="4" align="center">
	                                    <input type="button" class="btnscs" value="查询" onclick="qryData()"/>&nbsp;&nbsp;
	                                    <input type="button" class="btnscs" value="取消" onclick="resetMyData()"/>&nbsp;&nbsp;
	                                    <input type="button" class="btnscs" value="导出" onclick="exportData()"  <c:if test="${orderSubForms==null}">disabled</c:if> />
	                                </td>
	                            </tr>
	                        </table>
	                	</form>
                    </div>
                    <div class="margin20"></div>
                    <div>
                        <table class="tableCss" cellpadding="0" cellspacing="0">
                            <tr class="titleTr">
                                <th width="200px">发货通知号</th>
                                <th width="200px">制单日期</th>
                                <th width="200px">发货通知状态</th>
                                <th width="100px">浏览</th>
                                <th width="100px" class="th1">删除</th>
                            </tr>
                            <c:if test="${orderSubForms!=null}">
								<c:forEach items="${orderSubForms}" var="orderSubForm" varStatus="index">
		                            <c:if test="${orderSubForm!=null}">
										<c:if test="${orderSubForm.index%2==1}">
											<tr align="left" class="contTr-old"  >
										</c:if>
										<c:if test="${orderSubForm.index%2==0}">
											<tr align="left" class="contTr-even">
										</c:if>
											<td>${orderSubForm.send_notice_no}</td>
											<td><font class="words-blue">${orderSubForm.creationtime}</font></td>
											<td>
			                                	<c:if test="${-1==orderSubForm.billstatus}">未提交</c:if>
			                                	<c:if test="${3==orderSubForm.billstatus}">已提交</c:if>
			                                	</select>
		                                	</td>
											<td>
												<a href="<%=path%>/other/qrySendNoticeDetail?pkSendNotice=${orderSubForm.pk_send_notice}&billStatus=${orderSubForm.billstatus}" enable >浏览</a>
		                                	</td>
											<td>
												<c:if test="${-1==orderSubForm.billstatus}"> <a href="<%=path%>/other/deleteSendNotice?pkSendNotice=${orderSubForm.pk_send_notice}" >删除</a></c:if>
												<c:if test="${3==orderSubForm.billstatus}"> <a disabled >删除</a></c:if>&nbsp;
		                                	</td>
										</tr>
									</c:if>
								</c:forEach>
							</c:if>
                        </table>
                    </div>
					<div class="margin20"></div>
					<div class="subpage_title">
						<div class="rollback">
                         	<a href="<%=path%>/other/goQryPageFromList" class="linkstyle" >&lt;&lt;&nbsp;返回</a>
                    	</div>
					</div>
					
	                <div class="margin8">
                    	<table align="left">
							<tr class="title">
								<td>
									<div id="message" class="msgcolor">${system_err_msg}</div>
								</td>
							</tr>
						</table>
					</div>    
                </div>
            </div>
        <div class="margin20"></div>
<!--    </div>-->
</body>
</html>
